﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace CarolLib.Configuration
{
    public class TestConfiguration : ConfigurationBase
    {
        string name = null;

        public string Name
        {
            get {
                return name;
            }
        }

        public static TestConfiguration GetConfig()
        {
            return GetConfig<TestConfiguration>("test");
        }

        protected override void LoadValuesFromConfigurationXml(System.Xml.XmlNode node)
        {
            base.LoadValuesFromConfigurationXml(node);
            if (node == null)
                return;

            XmlNode n = node.Attributes["name"];
            if (n != null)
            {
                name = n.Value;
            }
        }
    }
}
